<?php /* Smarty version Smarty-3.1.13, created on 2013-07-02 06:11:52
         compiled from ".\templates\partyType.tpl" */ ?>
<?php /*%%SmartyHeaderCode:129905188d364de1494-39722809%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fe4b259d10b94eefb52cbaa56f52c8075d34d459' => 
    array (
      0 => '.\\templates\\partyType.tpl',
      1 => 1372745511,
      2 => 'file',
    ),
    '9d3840acd837a27297ba054f8bc546ea8525850a' => 
    array (
      0 => 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\hirenbhai\\templates\\main.tpl',
      1 => 1372739455,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '129905188d364de1494-39722809',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.13',
  'unifunc' => 'content_5188d364f02111_68350962',
  'variables' => 
  array (
    's_activId' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5188d364f02111_68350962')) {function content_5188d364f02111_68350962($_smarty_tpl) {?><?php if (!is_callable('smarty_function_html_options')) include 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\hirenbhai\\include\\smarty\\libs\\plugins\\function.html_options.php';
if (!is_callable('smarty_function_html_select_date')) include 'D:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\hirenbhai\\include\\smarty\\libs\\plugins\\function.html_select_date.php';
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<title>!! HIRENBHAI !!</title>
<link rel="stylesheet" type="text/css" href="./css/main.css" />
<link rel="stylesheet" type="text/css" href="./css/style.css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<link rel="stylesheet" href="css/style1.css" media="screen">
	<style type="text/css">
		html, body { margin: 0;	padding: 0; }
		ul.menu { margin: 0px auto 0 auto; }
	</style>
	</head>

<script>
function party(partyType)
{
  var dataString = "partyType=" + partyType
  $.ajax({
	  type: "GET",
	  url: "getParty.php",
	  data: dataString,
	  success:function(data)
	  {
	    $('.partyNameGet').html(data);
    }
  });
}
</script>



<?php if (strlen($_smarty_tpl->tpl_vars['s_activId']->value)>0){?>
<div id="headerContent">
  <div id="headingData"><br>
    <a href="bill.php"></a>
  </div>
</div>
<body>
  <ul class="menu">
    <li><a href="#"> Master</a>
      <ul>
        <li><a href="item.php" align="left"> Item</a></li>
        <li><a href="size.php"  align="left">Size</a></li>
        <li><a href="company.php"  align="left">Company</a></li>
        <li><a href="quality.php"  align="left">Quality</a></li>
        <li><a href="itemCreate.php"  align="left">Color</a></li>
        <li><a href="itemImage.php"  align="left">Item Image</a></li>
        <li><a href="transaction.php"  align="left">Transaction</a></li>
      </ul>
    </li>
    <li><a href="party.php">Party</a><li>
    <li><a href="partyType.php">Transaction</a><li>
    <li><a href="order.php"> Order</a><li>
    <li><a href="orderlist.php"> Order List</a><li>
    <li><a href="bill.php">Bill</a></li>
    <li><a href="logout.php">Logout</a><li>
  </ul>
</body>
<?php }?>

<br />
<form name="partyForm" action="<?php echo $_SERVER['PHP_SELF'];?>
" method="post">
<table align="center" border=2>
<tr>
  <td align="center" class="table1" colspan="8">Transaction</td>
</tr>
<tr>
  <th class="table2" align="right" >Party Type</th>
  <td class="table2">
    <select name="partyType" id="partyType" onchange="party(this.value);" required autofocus />
      <option value="">All</option>
      <?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['partyTypeComboArray']->value['partyType'],'output'=>$_smarty_tpl->tpl_vars['partyTypeComboArray']->value['partyType']),$_smarty_tpl);?>

    </select>	
  </td>
  <th class="table2" align="right">Party Name</th>
  <td class="table2">
    <select name="partyId" class="partyNameGet">
      <option value="">Party Name</option>
      <?php echo smarty_function_html_options(array('values'=>$_smarty_tpl->tpl_vars['partyComboArray']->value['partyId'],'output'=>$_smarty_tpl->tpl_vars['partyComboArray']->value['partyName']),$_smarty_tpl);?>

	  </select>
  </td>
  <th class="table2" align="right">Date</th>
  <td class="table2" colspan="3"><?php echo smarty_function_html_select_date(array('prefix'=>"curDate",'start_year'=>"-0",'end_year'=>"+2",'field_order'=>"DMY",'month_format'=>"%m",'day_value_format'=>"%02d"),$_smarty_tpl);?>
</td>
</tr>                           
<tr>
  <th class="table2" align="right">Amount</th>
  <td class="table2"><input type="text" name="amount" /></td>
  <th class="table2" align="right">Credit</th>
  <td class="table2" colspan="">
    <select name="credit">
      <option> Select</option>
      <option value="Dr">Dr</option>
      <option value="Cr">Cr</option>
    </select>	
  </td>
  <th class="table2">Transaction In</th>
  <td class="table2" colspan="">
    <select name="transactionIn">
      <option> Select</option>
      <option value="Cash">Cash</option>
      <option value="Bank">Bank</option>
      <option value="Bank2">Bank2</option>
    </select>	
  </td>
  <th class="table2" align="right">cash Place</th>
  <td class="table2"><input type="text" name="cashPlace" /></td>
</tr>
<!--------------------------------------------------------->
<tr>
  <th class="table2" align="right">Angadiya Name</th>
  <td class="table2"><input type="text" name="angadiyaName" /></td>
  
  <th class="table2" align="right">Angadiya Charge</th>
  <td class="table2"><input type="text" name="angadiyaCharge" /></td>
  
  <th class="table2" align="right">Pay</th>
  <td class="table2" colspan="3">
    <select name="pay">
      <option> Select</option>
      <option value="Paid">Paid</option>
      <option value="topay">To Pay</option>
    </select>	
  </td>
</tr>

<!--------------------------------------------------------->
<tr>
  <th class="table2" align="left">Contact Person</th>
  <td class="table2" colspan=""><input type="text" name="contactPerson"></td>
  <th class="table2" align="right">Angadiya</th>
  <td class="table2"><input type="text" name="angadiya"></td>
  <th class="table2" align="left">Angadiya Date</th>
  <td class="table2"  colspan="3"><?php echo smarty_function_html_select_date(array('prefix'=>"angadiya",'start_year'=>"-0",'end_year'=>"+2",'field_order'=>"DMY",'month_format'=>"%m",'day_value_format'=>"%02d"),$_smarty_tpl);?>
</td>
</tr>
  <th class="table2" align="right">Receipt No</th>
  <td class="table2"><input type="text" name="receiptNo"></td>
  <th class="table2" align="right">Type</th>
  <td class="table2" colspan="">
    <select name="type">
      <option> Select</option>
      <option value="Cash">Cash</option>
      <option value="Bank">Bank</option>
      <option value="Bank2">Bank2</option>
    </select>	
  </td>
  <th class="table2" align="right">Narration</th>
  <td class="table2"  colspan="3"><textarea name="narration" rows="3" cols="25"></textarea></td>
</tr>
<tr>
  <td colspan="8" align="center" class="table1"><input type="submit" name="submitBtn" value="Submit" class="button" /></td>
</tr>
</table>
</form>
<br /><br /><br />
<table align="center" border=2>
<tr>
  <th class="table1" NOWRAP>Action</th>
  <th class="table1" NOWRAP>Party Type</th>
  <th class="table1" NOWRAP>Party Name</th>
  <th class="table1" NOWRAP>Date</th>
  <th class="table1" NOWRAP>Amount</th>
  <th class="table1" NOWRAP>Credit</th>
  <th class="table1" NOWRAP>TransactionIn</th>
  <th class="table1" NOWRAP>Cash Place</th>
  <th class="table1" NOWRAP>Angadiya Name</th>
  <th class="table1" NOWRAP>Angadiya Charge</th>
  <th class="table1" NOWRAP>Pay</th>
  <th class="table1" NOWRAP>Contact Person</th>
  <th class="table1" NOWRAP>Angadiya</th>
  <th class="table1" NOWRAP>Angadiya Date</th>
  <th class="table1" NOWRAP>receiptNo</th>
  <th class="table1" NOWRAP>type</th>
  <th class="table1" NOWRAP>Narration</th>
</tr>
<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['name'] = "sec";
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['partyArray']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']["sec"]['total']);
?>
<tr>
	<td class="table2"><a href="partyTypeDelete.php?partyDetailId=<?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyDetailId'];?>
" onclick="return confirm('Sure to Delete?');"class="link"><img src="./images/deleteIco.png"></a></td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyType'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyDetailName'];?>
</td>
  <td class="table2" NOWRAP><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['partyDate'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['amount'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['credit'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['transactionIn'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['cashPlace'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['angadiyaName'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['angadiyaCharge'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['pay'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['contactPerson'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['angadiya'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['angadiyaDate'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['receiptNo'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['type'];?>
</td>
  <td class="table2"><?php echo $_smarty_tpl->tpl_vars['partyArray']->value[$_smarty_tpl->getVariable('smarty')->value['section']['sec']['index']]['narration'];?>
</td>
</tr>
<?php endfor; endif; ?>
</table>

</body>
</html><?php }} ?>